import {request} from '@/config/http.js'
 
 // 登录-获取openid
export function setWeChartData (config) {
	return request({
		url:'/openid/userifo?appid='+config.appid+'&secret='+config.secret+'&code='+config.code,
		method:'post',
	})
}

 // 获取用户列表
export function getUserList (query) { 
	return request({
		url:'/openid/pagelists',
		method:'get',
		data: query
	})
}

 // 获取用户信息
export function getUserInfo (query) { 
	return request({
		url:'/openid/selectByNick',
		method:'get',
		data: query
	})
}
 // 获取用户模板
export function getTemplate (query) { 
	return request({
		url:'/openid/tenpList',
		method:'get',
		data: query
	})
}